using System;
using System.Collections.Generic;

namespace Maxleaf.EDI.Domain.EDI
{
    public partial class User_DB
    {
        public int UserID { get; set; }
        public string DBID { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public int FDeleted { get; set; }

        public bool Authenticate(string hashedInputPassword)
        {
            return this.FDeleted==0 && this.Password.Equals(hashedInputPassword, StringComparison.InvariantCultureIgnoreCase);
        }
    }
}
